package com.scalar.chiptrack.adaptor;


public class InventoryLot
{

    private String m_partNumber = null;
    private String m_lotNumber  = null;
    private String m_qtyIn      = null;
    private String m_qtyOut     = null;
    private String m_dateIn     = null;
    private String m_dateOut    = null;
    private String m_type       = null;
    private String m_vendorName = null;
    private String m_waferQtyIn = null;
    private String m_dateCode   = null;
    private String m_vendorLot  = null;
    private String m_comments   = null;
    private boolean m_hold;
    private String m_stage      = null;
    private String m_holdCode   = null;
    private String m_holdReason = null;
    private String m_status     = null;
    private String qty_balance  = null;
    private String waferId      = null;
    private String m_locationCode   = "";
    private String m_expectedDate   = null;
    private String m_mergedLotNo    = null;
    private String m_customerPO     = null;
    private String m_customerWO     = null;
    private String m_fabLotNumber   = null;
    private String m_labelName      = null;
    private String m_fileDateIn     = null;
    private String lotCategory      = null;
    private String assemblyVendor   = null;
    private String category         = null;
    private String lotStartDieQtyIn = null;
    private String testProgram      = null;
    private String pkgType          = null;
    private String leadCount        = null;

    // Empty Construtor
    public InventoryLot()
    {
    }

    public InventoryLot( String vendorName, String type, String lotNumber, String partNumber, String dateIn, String qtyIn, String dateCode )
    {
        m_vendorName = vendorName;
        m_type = type;
        m_lotNumber = lotNumber;
        m_partNumber = partNumber;
        m_dateIn = dateIn;
        m_qtyIn = qtyIn;
        m_dateCode = dateCode;
    }

    public InventoryLot( String vendorName, String type )
    {
        m_vendorName = vendorName;
        m_type = type;
    }

    public String getPartNumber()
    {
        return m_partNumber;
    }

    public void setPartNumber( String partNumber )
    {
        m_partNumber = partNumber;
    }

    public String getLotNumber()
    {
        return m_lotNumber;
    }

    public void setLotNumber( String lotNumber )
    {
        m_lotNumber = lotNumber;
    }

    public String getType()
    {
        return m_type;
    }

    public void setType( String type )
    {
        m_type = type;
    }

    public String getDateIn()
    {
        return m_dateIn;
    }

    public void setDateIn( String dateIn )
    {
        m_dateIn = dateIn;
    }

    public int getQtyInAsInt()
    {
        int qtyIn = 0;
        try
        {
            qtyIn = Integer.parseInt( m_qtyIn );
        }
        catch( NumberFormatException nfe )
        {
            // invalid... return 0
        }
        return qtyIn;
    }

    public String getQtyIn()
    {
        return m_qtyIn;
    }

    public void setQtyIn( String qtyIn )
    {
        m_qtyIn = qtyIn;
    }

    public String getDateOut()
    {
        return m_dateOut;
    }

    public void setDateOut( String dateOut )
    {
        m_dateOut = dateOut;
    }

    public String getQtyOut()
    {
        return m_qtyOut;
    }

    public void setQtyOut( String qtyOut )
    {
        m_qtyOut = qtyOut;
    }

    public String getVendorName()
    {
        return m_vendorName;
    }

    public void setVendorName( String vendorName )
    {
        m_vendorName = vendorName;
    }

    public String getDateCode()
    {
        return m_dateCode;
    }

    public void setDateCode( String dateCode )
    {
        m_dateCode = dateCode;
    }

    public String getWaferQtyIn()
    {
        return m_waferQtyIn;
    }

    public void setWaferQtyIn( String waferQtyIn )
    {
        m_waferQtyIn = waferQtyIn;
    }

    public String getVendorLot()
    {
        return m_vendorLot;
    }

    public void setVendorLot( String vendorLot )
    {
        m_vendorLot = vendorLot;
    }

    public String getComments()
    {
        return m_comments;
    }

    public void setComments( String comments )
    {
        m_comments = comments;
    }

    public String getQty_balance()
    {
        return qty_balance;
    }

    public void setQty_balance( String qty_balance )
    {
        this.qty_balance = qty_balance;
    }

    public String getExpectedDate()
    {
        return m_expectedDate;
    }

    public void setExpectedDate( String expectedDate )
    {
        m_expectedDate = expectedDate;
    }

    public String getHoldCode()
    {
        return m_holdCode;
    }

    public void setHoldCode( String code )
    {
        m_holdCode = code;
    }

    public String getHoldReason()
    {
        return m_holdReason;
    }

    public void setHoldReason( String reason )
    {
        m_holdReason = reason;
    }

    public String getStage()
    {
        return m_stage;
    }

    public void setStage( String stage )
    {
        m_stage = stage;
    }

    public String getLocationCode()
    {
        return m_locationCode;
    }

    public void setLocationCode( String locationCode )
    {
        this.m_locationCode = locationCode;
    }
    public boolean isHold()
    {
        return m_hold;
    }

    public void setHold( boolean hold )
    {
        this.m_hold = hold;
    }
    public String getStatus()
    {
        return m_status;
    }
    public void setStatus(String status)
    {
        this.m_status = status;
    }
    public String getMergedLotNo() {
        return m_mergedLotNo;
    }

    public void setMergedLotNo(String mergedLotNo) {
        this.m_mergedLotNo = mergedLotNo;
    }

    public String getWaferId() {
        return waferId;
    }

    public void setWaferId(String waferId) {
        this.waferId = waferId;
    }

    public String getCustomerPO() {
        return m_customerPO;
    }

    public void setCustomerPO(String customerPO) {
        this.m_customerPO = customerPO;
    }

    public String getCustomerWO() {
        return m_customerWO;
    }

    public void setCustomerWO(String customerWO) {
        this.m_customerWO = customerWO;
    }

    public String getFabLotNumber() {
        return m_fabLotNumber;
    }

    public void setFabLotNumber(String fabLotNumber) {
        this.m_fabLotNumber = fabLotNumber;
    }

    public String getLabelName() {
        return m_labelName;
    }

    public void setLabelName(String m_labelName) {
        this.m_labelName = m_labelName;
    }

    public String getFileDateIn() {
        return m_fileDateIn;
    }

    public void setFileDateIn(String m_fileDateIn) {
        this.m_fileDateIn = m_fileDateIn;
    }

    public String getLotCategory() {
        return lotCategory;
    }

    public void setLotCategory(String lotCategory) {
        this.lotCategory = lotCategory;
    }

    public String getAssemblyVendor() {
        return assemblyVendor;
    }

    public void setAssemblyVendor(String assemblyVendor) {
        this.assemblyVendor = assemblyVendor;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getLotStartDieQtyIn() {
        return lotStartDieQtyIn;
    }

    public void setLotStartDieQtyIn(String lotStartDieQtyIn) {
        this.lotStartDieQtyIn = lotStartDieQtyIn;
    }

    public String getPkgType() {
        return pkgType;
    }

    public void setPkgType(String pkgType) {
        this.pkgType = pkgType;
    }

    public String getLeadCount() {
        return leadCount;
    }

    public void setLeadCount(String leadCount) {
        this.leadCount = leadCount;
    }

    public String getTestProgram() {
        return testProgram;
    }

    public void setTestProgram(String testProgram) {
        this.testProgram = testProgram;
    }

    public String toString()
    {

        StringBuffer buf = new StringBuffer();

        buf.append( "[ Part Number = " ).append( m_partNumber );
        buf.append( "] [Lot Number = " ).append( m_lotNumber );
        buf.append( "] [Fab LotNumber = " ).append( m_fabLotNumber );
        buf.append( "] [Qty In = " ).append( m_qtyIn );
        buf.append( "] [Qty Out = " ).append( m_qtyOut );
        buf.append( "] [Date In = " ).append( m_dateIn );
        buf.append( "] [Date Out = " ).append( m_dateOut );
        buf.append( "] [Inventory Type = " ).append( m_type );
        buf.append( "] [Vendor = " ).append( m_vendorName );
        buf.append( "] [Stage = " ).append( m_stage );
        buf.append( "] [Wafer Qty In = " ).append( m_waferQtyIn );
        buf.append( "] [Status = " ).append( m_status );
        buf.append( "] [WaferId = " ).append( waferId ).append( "]" );

        return buf.toString();
    }

}